import requests

APPID = 'wxd83dbec97bf3f1d0'  # 使用微信小程序第三方登录
APP_SECRET = 'c57bd170faeba68d89e76551375d9360'
ACCESS_TOKEN = ' https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=%s&secret=%s' \
               % (APPID, APP_SECRET)


def get_access_token():
    res = requests.get(url=ACCESS_TOKEN).json()
    return res['access_token']
